#ifndef __REGDEF_H_
#define __REGDEF_H_

#define regTubeRegstor    (*(volatile unsigned *)0x0d800020)

#define regIRQStatus      (*(volatile unsigned *)0x0A000000)
#define regIRQEnableSet   (*(volatile unsigned *)0x0A000008)
#define regIRQEnableClear (*(volatile unsigned *)0x0A00000c)

#define IRQ_TIMER1      0x0010
#define IRQ_TIMER2      0x0020

#define regTimer1Load     (*(volatile unsigned *)0x0A800000)
#define regTimer1Value    (*(volatile unsigned *)0x0A800004)
#define regTimer1Control  (*(volatile unsigned *)0x0A800008)
#define regTimer1Clear    (*(volatile unsigned *)0x0A80000C)

#define regTimer2Load     (*(volatile unsigned *)0x0A800020)
#define regTimer2Value    (*(volatile unsigned *)0x0A800024)
#define regTimer2Control  (*(volatile unsigned *)0x0A800028)
#define regTimer2Clear    (*(volatile unsigned *)0x0A80002C)

#define TIMER_ENABLE    0x80
#define TIMER_PERIODIC  0x40
#define TIMER_PRESCALE8 0x08


#endif

